package fractal.view;

import fractal.app.AppDefine;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

/** Class make start panel application */
public class StartPagePanel extends JPanel {

	private JPanel panel;
	private JLabel text;

	/** constructor argument: application view */
	public StartPagePanel(AppView appView) {
		super(new BorderLayout());

		this.text = new JLabel("Wybierz fractal:");

		this.panel = new JPanel(new FlowLayout(1));
		this.panel.add(new ClickButton(AppDefine.FRACTAL1, AppDefine.FRACTAL1, appView));
		this.panel.add(new ClickButton(AppDefine.FRACTAL2, AppDefine.FRACTAL2, appView));

		super.add(this.text, BorderLayout.NORTH);
		super.add(this.panel, BorderLayout.CENTER);
	}
}
